﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;

namespace BUS
{
    public class LoaiPhongBUS
    {
        public static List<LoaiPhongDTO> layDSLoaiPhong()
        {
            return LoaiPhongDAO.LayDSLoaiPhong();
        }

        public static bool themLoaiPhong(string tenLoaiPhong, long donGia, long soKhach)
        {
            return LoaiPhongDAO.ThemLoaiPhong(tenLoaiPhong, donGia, soKhach);
        }

        public static void xoaLoaiPhong(long maLoaiPhong)
        {
            LoaiPhongDAO.XoaLoaiPhong(maLoaiPhong);
        }

        public static void updateLoaiPhong(long maLoaiPhong, string tenLoaiPhong, long donGia, long soKhach)
        {
            LoaiPhongDAO.UpdateLoaiPhong(maLoaiPhong, tenLoaiPhong, donGia, soKhach);
        }
    }
}
